var MessageBox = function(element, controller)
{
	//this.controller = controller;
	this.title = "";
	this.message = "";
	this.controls = '';

	this.element		= element;
	
};
MessageBox.prototype = {

	gameStatus: function(title, message)
	{
		this.title = String.format("<div id='gameStatusDiv'>{0}</div>", title);
		this.message = String.format("<div id='gameStatusMessageDiv'>{0}</div>", message);
	},
	gameControl: function(controls)
	{
		this.controls = "<div id='gameStatusControl'>" + controls + "</div>";
	},
	update: function(caller)
	{
		caller.prepareForMessageBoxUpdate();

		var html = [];
		
		html.push(this.title);
		html.push(this.message);
		html.push(this.controls);
		this.element.innerHTML = html.join("\n");
	},
}
